package red_neuronal;

import java.math.BigDecimal;

/**
 *
 * @author miguel mora 68397
 */
public class Red_neuronal {

    public static void main(String[] args) {

        /* neurona Neurona = new neurona(3);
        
         Neurona.llenar_valores_or();
         System.out.println("Función OR");
        
         //Neurona.llenar_valores_and();
         //System.out.println("Función AND");
        
         Neurona.rellenar(-1.0 , 0.3, -1.0 , 0.7, 1.0, -0.4);
         boolean evalua;
         int aux = 0;
         do {
         Neurona.valores(Neurona.valores[0][aux], Neurona.valores[1][aux]);
         boolean evaluar = Neurona.evaluar2();
         if (evaluar == false) {
         Neurona.recalcular(Neurona.valores[2][aux]);
         Neurona.valores(Neurona.valores[0][aux], Neurona.valores[1][aux]);
         evaluar = Neurona.evaluar2();
         }
         aux++;
         } while (aux < Neurona.valores.length);
         for (int i = 0; i < Neurona.valor.length; i++) {
         BigDecimal bd = new BigDecimal(Neurona.pesos[i]);
         BigDecimal doubleRedondeado = bd.setScale(1,BigDecimal.ROUND_HALF_UP);
         System.out.println("Peso final No " + (i+1) + " = " + doubleRedondeado );
         }*/
    }
}
